package org.example.myleet.p1260;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[[9,1,2],[3,4,5],[6,7,8]]".equals(JsonUtils.toJson(solution.shiftGrid(Parser.parse("[[1,2,3],[4,5,6],[7,8,9]]"), 1))));
        Assert.isTrue("[[12,0,21,13],[3,8,1,9],[19,7,2,5],[4,6,11,10]]".equals(JsonUtils.toJson(solution.shiftGrid(Parser.parse("[[3,8,1,9],[19,7,2,5],[4,6,11,10],[12,0,21,13]]"), 4))));
        Assert.isTrue("[[1,2,3],[4,5,6],[7,8,9]]".equals(JsonUtils.toJson(solution.shiftGrid(Parser.parse("[[1,2,3],[4,5,6],[7,8,9]]"), 9))));
    }
}
